import axios from 'axios'

export default {
    /**
     * 获取列表数据
     * @param params
     * @returns {AxiosPromise<any>}
     */
    fetch (params) {
        return axios.get('an/service/bill', {
            params: params
        });
    },
    /**
     * 根据id获取详情
     */
    fetchById(id,params){
        return axios.get(`an/service/bill/${id}`,{
            params:params
        });
    },
}
